

        <g:set var="entityName" value="${message(code: 'leave.label', default: 'Leave')}" />
            <g:form method="post" >
                <g:hiddenField name="id" value="${leaveInstance?.id}" />
                <g:hiddenField name="version" value="${leaveInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="approver"><g:message code="leave.teacher.label" default="teacher" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveInstance, field: 'teacher', 'errors')}">
                                    ${leaveInstance?.teacher}
                                </td>
                            </tr>
                         
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="startTime"><g:message code="leave.startTime.label" default="Start Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveInstance, field: 'startTime', 'errors')}">
                                    <g:formatDate date="${leaveInstance.startTime}" formatName ="default.datetime.format" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="endTime"><g:message code="leave.endTime.label" default="End Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveInstance, field: 'endTime', 'errors')}">
                                    <g:formatDate date="${leaveInstance.startTime}" formatName ="default.datetime.format" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="reason"><g:message code="leave.reason.label" default="Reason" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveInstance, field: 'reason', 'errors')}">
                                    ${leaveInstance?.reason}
                                </td>
                            </tr> 
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="reason"><g:message code="leave.pass.label" default="pass" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveInstance, field: 'pass', 'errors')}">
                                    <input type="radio" class="pass" name="pass" value="true">同意
                                    <input type="radio" class="pass" name="pass" value="false">不批准 
                                </td>
                            </tr> 
                            <tr class="prop deny hide">
                                <td valign="top" class="name">
                                  <label for="reason"><g:message code="leave.deny.label" default="deny" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveInstance, field: 'deny', 'errors')}">
                                    <g:textArea name="deny" cols="40" rows="5" value="${leaveInstance?.deny}" />
                                </td>
                            </tr> 
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                </div>
            </g:form>
